# 作业
# 1
# a = 5
# b = 7
# print("1.0+a/b =", 1.0 + a / b)
#
# # 2
# x = float(input("请输入数字x:"))
# y = float(input("请输入数字y:"))
# z = float(input("请输入数字z:"))
# if x < z or y < z:
#     print("x或y中有一个小于z")
# else:
#     print("x和y都不小于z")

# 3
import random

a = []
for i in range(12):
    a.append(random.randint(0, 1))
print("亮灯情况：", a)
no = random.randint(0, 11)
print("你打到了第", no + 1, "个灯")
if a[no] == 1:
    print("游戏结束 True")
else:
    print("游戏结束 False")

